package com.ckjava.test.gencode.dao.base;

import com.ckjava.test.gencode.entity.base.BaseMybatisEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseMybatisCrudDao<T extends BaseMybatisEntity> {

    public List<T> getAll();

    public <E extends BaseMybatisEntity> E get(Long id);

    public Long save(T t);

    public void update(T t);

    public int delete(Long id);
}
